package com.viphuli.app.tool.bean.part;

import com.google.gson.annotations.SerializedName;
import com.viphuli.app.tool.utils.OtherUtils;

/**
 * 排班类型信息
 * 
 * @author li.li
 *
 */
public class ArrangeType {
	
	@SerializedName("arrange_type_id")
	private int id;
	
	@SerializedName("name")
	private String name;
	
	@SerializedName("icon")
	private String icon;
	
	@SerializedName("color")
	private String color;
	
	@SerializedName("start")
	private long start;
	
	@SerializedName("end")
	private long end;
	
	@SerializedName("duration")
	private String duration;
	
	@SerializedName("type")
	private int type;//1上班，2休息
	
	@SerializedName("hour")
	private int hour;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public long getStart() {
		return start;
	}
	
	public long start(){
		return OtherUtils.getNeedTime(start);
	}

	public void setStart(long start) {
		this.start = start;
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(long end) {
		this.end = end;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getHour() {
		return hour;
	}

	public void setHour(int hour) {
		this.hour = hour;
	}
	
	
}
